package com.qipay.channelType;

import com.qipay.baas.model.ChannelType;
import com.qipay.baas.model.Peizhi;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;

public interface ChannelTypeService {
    @Transactional
    List<ChannelType> selectAll();
    ChannelType findById(long id);
    void save(Long id, BigDecimal cpFeeRecharge, BigDecimal agentFeeRecharge,BigDecimal rateAdvance);
    void save(Long id, Byte status);
    int insert(ChannelType channelType);
    int delete(long id);

    //根据id修改cpFeeRecharge
    void updateCpFeeRechargeByid(Long id,BigDecimal cpFeeRecharge );

    //根据id修改agentFeeRecharge
    void updateAgentFeeRechargeByid(Long id,BigDecimal agentFeeRecharge );

    //根据id修改rateAdvance
    void updateRateAdvanceByid(Long id,BigDecimal rateAdvance );

}
